/*
 * Create Author  : jinpeng.chen
 * Create Date    : 2016-11-21
 * Project        : spring-boot
 * File Name      : Main.java
 *
 * Copyright (c) 2010-2015 by Shanghai HanTao Information Co., Ltd.
 * All rights reserved.
 *
 */
package com.charles.spring.service;

import com.charles.spring.config.DiConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 功能描述:  <p>
 *
 * @author : jinpeng.chen <p>
 * @version 1.0 2016-11-21
 * @since spring-boot 1.0
 */
public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DiConfig.class);
        UseFunctionService useFunctionService = context.getBean(UseFunctionService.class);
        System.out.println(useFunctionService.sayHello("world"));
        context.close();
    }
}
